
const select = {
  state: {
    provinceId: 0,
    cityId: 0,
    areaId: 0,
    schoolId: 0,
    areaName: '',
    schoolName: '',
    joinYear: 0,
    schoolRollId: '',
    userName: '',
    contactPhone: ''
  },
  mutations: {
    SET_PROVINCE_ID: (state, provinceId) => {
      state.provinceId = provinceId
    },
    SET_CITY_ID: (state, cityId) => {
      state.cityId = cityId
    },
    SET_AREA_ID: (state, areaId) => {
      state.areaId = areaId
    },
    SET_SCHOOL_ID: (state, schoolId) => {
      state.schoolId = schoolId
    },
    SET_AREA_NAME: (state, areaName) => {
      state.areaName = areaName
    },
    SET_SCHOOL_NAME: (state, schoolName) => {
      state.schoolName = schoolName
    },
    SET_JOIN_YEAR: (state, joinYear) => {
      state.joinYear = joinYear
    },
    SET_SCHOOL_ROLL_ID: (state, schoolRollId) => {
      state.schoolRollId = schoolRollId
    },
    SET_USER_NAME: (state, userName) => {
      state.userName = userName
    },
    SET_CONTACT_PHONE: (state, contactPhone) => {
      state.contactPhone = contactPhone
    }
  },
  actions: {
    SetProvinceId ({ commit }, provinceId) {
      commit('SET_PROVINCE_ID', provinceId)
    },
    SetCityId ({ commit }, cityId) {
      commit('SET_CITY_ID', cityId)
    },
    SetAreaId ({ commit }, areaId) {
      commit('SET_AREA_ID', areaId)
    },
    SetSchoolId ({ commit }, schoolId) {
      commit('SET_SCHOOL_ID', schoolId)
    },
    SetAreaName ({ commit }, areaName) {
      commit('SET_AREA_NAME', areaName)
    },
    SetJoinYear ({ commit }, joinYear) {
      commit('SET_JOIN_YEAR', joinYear)
    },
    SetSchoolName ({ commit }, schoolName) {
      commit('SET_SCHOOL_NAME', schoolName)
    },
    SetSchoolRollId ({ commit }, schoolRollId) {
      commit('SET_SCHOOL_ROLL_ID', schoolRollId)
    },
    SetUserName ({ commit }, userName) {
      commit('SET_USER_NAME', userName)
    },
    SetContactPhone ({ commit }, contactPhone) {
      commit('SET_CONTACT_PHONE', contactPhone)
    }
  }
}

export default select
